package com.zj.executor;

import com.zj.mapping.MappedStatement;
import com.zj.sqlSession.ResultHandler;
import com.zj.transaction.Transaction;

import java.sql.SQLException;
import java.util.List;

public interface Executor {
    ResultHandler NO_RESULT_HANDLER = null;

    int update(MappedStatement var1, Object var2) throws SQLException;
    <E> List<E> query(MappedStatement ms, Object parameter) throws SQLException;


    void commit(boolean var1) throws SQLException;

    void rollback(boolean var1) throws SQLException;

    Transaction getTransaction();

    void close(boolean var1);




}
